projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e656f66
)
render: Fix a position/size mixup
author
Timm Bäder
<mail@baedert.org>
Tue, 13 Nov 2018 13:08:32 +0000
(14:08 +0100)
committer
Timm Bäder
<mail@baedert.org>
Tue, 13 Nov 2018 13:10:17 +0000
(14:10 +0100)
Fixes the foreigndrawing demo.
gtk/gtkrender.c
patch
|
blob
|
history
diff --git
a/gtk/gtkrender.c
b/gtk/gtkrender.c
index 4162812dc5da4c4bfad33893b4ea076b742d226a..78372e8d0cd44f0c4db5d401fa5070db11a98c8f 100644
(file)
--- a/
gtk/gtkrender.c
+++ b/
gtk/gtkrender.c
@@
-636,7
+636,8
@@
gtk_render_icon (GtkStyleContext *context,
gtk_css_style_snapshot_icon_paintable (gtk_style_context_lookup_style (context),
snapshot,
GDK_PAINTABLE (texture),
- x, y,
+ gdk_texture_get_width (texture),
+ gdk_texture_get_height (texture),
FALSE);
node = gtk_snapshot_free_to_node (snapshot);
if (node == NULL)